package com.hkzhao.shixun.service;

import com.hkzhao.shixun.common.api.CommonResult;
import com.hkzhao.shixun.mbg.model.Activity;
import com.hkzhao.shixun.mbg.model.Lotteryrecord;

import org.springframework.transaction.annotation.Transactional;

import javax.servlet.http.HttpServletRequest;

import java.util.List;

/**
 * @author 12236
 */
public interface XwoUserService {
    @Transactional
    CommonResult register(String username,String password,String phoneNumber);
    String login(String username,String password);
    CommonResult addLotteryRecord(String recordId,String location, String actualName,String phoneNumber);
    List<Lotteryrecord> findLotteryRecord(String  username, String activityId,int pageNum,int pageSize);
    CommonResult DrawsLottery(HttpServletRequest httpServletRequest,String activityId);
    String getXwoUserNameByToken(HttpServletRequest httpServletRequest);
    List<Activity> getActivityby(String actid, String tag, String title, String status, int pageNum, int pageSize);
}
